Mollie\WooCommerce\Payment\PaymentService B

Total Complexity 97
Dependencies 17
Dependents 6
Total lines 854
Lines of code 519
Logical lines of code 238
Comment lines 157
Methods 27
Properties 10

Methods 27

Method Rating Maintainability Complexity Lines of code
processAsMollieOrder()
B
35 15 92
processAsMolliePayment()
A
45 11 42
correctSurchargeFee()
A
46 8 39
processPayment()
A
43 7 52
updateOrderStatus()
A
54 8 21
paymentTypeBasedOnProducts()
S
51 5 31
processSubscriptionSwitch()
S
57 4 16
updatePaymentStatusForDelayedMethods()
S
61 4 12
processPaymentForMollie()
S
54 3 25
processValidMandate()
S
56 3 18
saveSubscriptionMandateData()
S
57 3 16
paymentTypeBasedOnGateway()
S
63 4 10
needsSubscriptionSwitch()
S
69 4 6
reportPaymentCreationFailure()
S
62 3 11
reportPaymentSuccess()
S
56 2 19
handleMollieOutage()
S
61 2 14
subsSwitchCompleted()
S
59 1 16
noValidMandateForSubsSwitchFailure()
S
61 1 15
processInitialOrderStatus()
S
64 1 11
__construct()
S
63 1 11
setGateway()
S
81 1 3
getUserMollieCustomerId()
S
73 1 5
getProcessPaymentRedirect()
S
67 1 9
orderAddFee()
S
66 1 9
paymentObjectFailure()
S
75 1 4
removeOrderFee()
S
72 1 6
saveMollieInfo()
S
70 1 6